package com.dragonwu.constant;

/**
 * @author DragonWu
 * @since 2022-10-07 19:21
 **/
public interface Constants {
    /*
     成功
     */
    Integer SUCCESS = 200;

    /*
     失败
     */
    Integer FAIL = 500;

    /*
    redis的统一前缀
     */
    String REDIS_PRE = "DragonWu:";

    /*
    redis的登录用户前缀
     */
    String ONLINE_PRE = REDIS_PRE + "online:";

    /*
     登录
     */
    String LOGIN_OK = "登录成功";
    String LOGIN_FAIL = "登录失败";
    String LOGOUT_OK = "登出成功";
    String LOGOUT_FAIL = "登出失败";
    String LOGIN_ERROR = "用户名或密码错误";

    /*
    获取资源
     */
    String GET_RESOURCE_OK = "获取成功";
    String GET_RESOURCE_FAIL = "获取失败";


}
